package pers.kw.server.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import pers.kw.validate.ModifyGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class OrderReqDto {

    @NotBlank(message = "orderNo不能为空",groups = ModifyGroup.class)
    @ApiModelProperty(value = "商品编号", required = true)
    private String orderNo;

    @NotBlank(message = "goodsNo不能为空")
    @ApiModelProperty(value = "商品编号", required = true)
    private String goodsNo;

    @NotNull(message = "goodsNum不能为空")
    @ApiModelProperty(value = "商品数量")
    private Long goodsNum;

}
